﻿
using Oliving.Edge.IRepository;
using Oliving.Edge.IRepository.UnitOfWork;
using Oliving.Edge.Model.Models;
using Oliving.Edge.Repository.Base;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Oliving.Edge.Repository
{
    /// <summary>
    /// Nlog_Log_202003Repository
    /// </summary>
    public class Nlog_Log_Repository : BaseRepository<Nlog_Log>, INlog_Log_Repository
    {
        public Nlog_Log_Repository(IUnitOfWork unitOfWork) : base(unitOfWork)
        {
        }





        public async Task<List<Nlog_Log>> EdgeGetList_DB2()
        {
            string tableName = "Nlog_Log_202003";

            var list = await Task.Run(() =>

                Db.Queryable(tableName, "")
                .Select<Nlog_Log>().ToList()

            );

            return list;
        }


    }
}
